package com.tangqihang229350526.mynote.viewmodel

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.tangqihang229350526.mynote.database.User

class MineViewModel : ViewModel() {
    private val name: MutableLiveData<String> = MutableLiveData()

    fun setUser(user: User) {
        name.value = user.name
    }

    fun getName(): LiveData<String> {
        return name
    }
}